<?php
$category = pc_variable("commerce.category");
$title = pc_message("catalog.title");
$description = pc_message("catalog.description");
$keywords = pc_message("catalog.keywords");
if($category !== null) {
    $title = $category->get("name");
    if($category->get("description") !== null) {
        $description = $category->get("description");
    }
}
pc_pagelet("layout", 
    array(
        "title" => $title,
        "description" => $description,
        "keywords" => $keywords,
        "section" => "catalog"
    ));